package com.ohuang.test_compose.page

import androidx.compose.foundation.layout.Column
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import com.ohuang.test_compose.ui.theme.Custom_Theme
import com.ohuang.test_compose.ui.theme.LocalAppColors
import com.ohuang.test_compose.ui.theme.Test_composeTheme

@Composable
fun CompositionLocalPage() {
    Test_composeTheme() {
        Column() {
            Surface(color = LocalAppColors.current.background) {
                Text(text = "Test_composeTheme",color =LocalAppColors.current.textPrimary)
            }

            Custom_Theme(darkTheme = true) {
                Surface(color = LocalAppColors.current.background) {
                    Text(text = "Custom_Theme", color =LocalAppColors.current.textPrimary )
                }
            }
        }

    }

}